<template>
  <div class="my-box">
    <div class="back">
      <div class="icon-box">
        <img class="setting" src="../assets/goImages/_1.png" />
        <div class="right-icon">
          <img class="envelope" src="../assets/goImages/LH.png" />
          <img class="more" src="../assets/goImages/Oq.png" />
        </div>
      </div>
      <div class="information">
        <img class="head-portrait" src="../assets/goImages/aW1.png" />
        <div class="text-box">
          <div class="name">登录/注册</div>
          <!-- <div class="autograph"></div> -->
        </div>
      </div>
      <div class="vip" v-for="v in vip" :key="v.id">
        <img class="vip-img" :src="v.cover_url" />
      </div>
    </div>
    <div class="list">
      <div class="order">
        <img class="order-icon" src="../assets/goImages/vj.png" />
        <div class="order-text">订单</div>
      </div>
      <div class="order">
        <img class="order-icon" src="../assets/goImages/9j.png" />
        <div class="order-text">收藏</div>
      </div>
      <div class="order">
        <img class="order-icon" src="../assets/goImages/oh.png" />
        <div class="order-text">鼓励金</div>
      </div>
      <div class="order">
        <img class="order-icon" src="../assets/goImages/jQ.png" />
        <div class="order-text">优惠券</div>
      </div>
    </div>
    <div class="share">
      <img class="share-img" src="../assets/goImages/L4.png" />
      <div class="share-life">分享你的吃喝玩乐</div>
    </div>
  </div>
</template>
<script>
import axios from '@/utils/request'
export default {
  data() {
    return {
      vip: []
    }
  },
  created() {
    this.RequestVip()
  },
  methods: {
    async RequestVip() {
      const vip = await axios.get('/v2/users/0/go_card_banners')
      this.vip.push(vip[0])
      // console.log(this.vip);
    }
  }
}
</script>
<style lang="less" scoped>
.my-box {
  width: 100vw;
  height: 100vh;
  background-color: #f6f6f6;
  .back {
    background-image: url('../assets/goImages/back.png');
    background-size: cover;

    .icon-box {
      display: flex;
      margin: 0 10px;
      padding-top: 10px;
      justify-content: space-between;
      .setting {
        width: 30px;
        height: 30px;
        display: block;
      }
      .right-icon {
        display: flex;

        .envelope {
          width: 30px;
          height: 30px;
          display: block;
          margin-right: 20px;
        }
        .more {
          width: 30px;
          height: 30px;
          display: block;
        }
      }
    }
    .information {
      display: flex;
      align-items: center;
      margin-left: 10px;
      margin-top: 10px;

      .head-portrait {
        border-radius: 999px;
        width: 60px;
        height: 60px;
        display: block;
      }
      .text-box {
        margin-left: 10px;

        .name {
          color: white;
        }
      }
    }
    .vip {
      .vip-img {
        width: 94%;
        margin: 0 auto;
        display: block;
        margin-top: 20px;
      }
    }
  }
  .list {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    background-color: white;
    .order {
      display: flex;
      flex-direction: column;
      align-items: center;
      .order-icon {
        width: 30px;
        height: 30px;
        display: block;
      }
      .order-text {
        font-size: 14px;
        margin-top: 10px;
      }
    }
  }
  .share{
    margin-top: 10px;
    width: 100vw;
    height: 35vh;
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    .share-img{
      width: 100px;
      height: 100px;
    }
    .share-life{
      margin-top: 20px;
      font-size: 14px;
      color: #ddd;
    }
  }
}
</style>
